﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PolicyMain.aspx.cs" Inherits="Web.PolicyMain" %>

<%@ Register TagPrefix="uc1" TagName="TopMenu" Src="TopMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Floor" Src="Floor.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>主策略管理 |海淀区学校素质评测管理平台</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/module.js"></script>
</head>
<body>
    <uc1:TopMenu ID='menu1' runat='server'></uc1:TopMenu>
    <div id="main">
        <form id="form1" runat="server">
        <div id='block'>
            <div id='blocktitle'>
                <h3> 主策略管理</h3>
                <em>[ <a
                    href='javascript:ShowIframe("PolicyMainUpdate.aspx","新建主策略",360,150);'>新建主策略</a> ]</em></div>
            <div id="blockcontent">
                <asp:ListView ID="UserLists" runat="server">
                    <LayoutTemplate>
                        <table cellpadding="5" cellspacing="1" border="0" width="100%" style="background-color: #DFDFDF"
                            id="userlist">
                            <tr>
                                <th>
                                   名称
                                </th>
                                <th>
                                    科目名称
                                </th>
                                <th width="10%">
                                    创建时间
                                </th>
                                <th width="10%" align="center">
                                    子策略
                                </th>
                                <th width="10%">
                                    管理
                                </th>
                            </tr>
                            <asp:Label ID="itemPlaceholder" runat="server" Text="Label"></asp:Label></table>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr>

                            <td>
                                <%# Eval("Name")%>
                            </td>
                            <td>
                                <asp:Label ID="lbSubject" OnDataBinding="lbSubject_DataBinding" runat="server" Text='<%# Eval("SubjectId")%>'></asp:Label>
                            </td>
                            <td>
                               <%# String.Format("{0:yyyy-MM-dd}", Eval("CreateDate")) %>
                            </td>
                            <td align="center">
                                 <a href='SubPolicy.aspx?id=<%# Eval("ID")%>&page=<%# Pages.PageNum %>&SubjectId=<%# Eval("SubjectId")%>'>子策略</a>
                            </td>
                            <td>
                                <a href='javascript:ShowIframe("PolicyMainUpdate.aspx?editid=<%# Eval("ID")%>&page=<%# Pages.PageNum %>","编辑主策略",360,150);'>
                                    编辑</a> | <a href='javascript:ShowConfirm("PolicyMainUpdate.aspx?delid=<%# Eval("ID")%>&page=<%# Pages.PageNum %>","确定要删除？",150,50);'>
                                        删除</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>
            </div>
            <div id="blockfloor">
                <asp:Label ID="PageLabel" runat="server" Text=""></asp:Label></div>
        </div>
        </form>
    </div>

    <script type="text/javascript">
$("#userlist th").css("background-color","#eeeeee");
$("#userlist td").css("background-color","#ffffff");
    </script>

    <uc1:Floor ID='Floor1' runat='server'></uc1:Floor>
</body>
</html>
